package pojo;

import java.sql.Date;

public class Ticket {
    private long _ticketNo;
    private Date _time;
    private double _price;
    private String _buyType;
    private String _ticketType;
    private String _status;

    public Ticket(long _ticketNo, Date _time, double _price, String _buyType, String _ticketType, String _status) {
        this._ticketNo = _ticketNo;
        this._time = _time;
        this._price = _price;
        this._buyType = _buyType;
        this._ticketType = _ticketType;
        this._status = _status;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "_ticketNo=" + _ticketNo +
                ", _time=" + _time +
                ", _price=" + _price +
                ", _buyType='" + _buyType + '\'' +
                ", _ticketType='" + _ticketType + '\'' +
                ", _status='" + _status + '\'' +
                '}';
    }

    public long get_ticketNo() {
        return _ticketNo;
    }

    public void set_ticketNo(long _ticketNo) {
        this._ticketNo = _ticketNo;
    }

    public Date get_time() {
        return _time;
    }

    public void set_time(Date _time) {
        this._time = _time;
    }

    public double get_price() {
        return _price;
    }

    public void set_price(double _price) {
        this._price = _price;
    }

    public String get_buyType() {
        return _buyType;
    }

    public void set_buyType(String _buyType) {
        this._buyType = _buyType;
    }

    public String get_ticketType() {
        return _ticketType;
    }

    public void set_ticketType(String _ticketType) {
        this._ticketType = _ticketType;
    }

    public String get_status() {
        return _status;
    }

    public void set_status(String _status) {
        this._status = _status;
    }
}
